
#author：zhujingyuan
import requests

import Params.CommonParas as P
from Params.CommonParas import environmentData

# url=clubapi.yologoer.com
url=environmentData['VipClubAddress']+"/api/token/"+P.openid

def getToken():

    rsp=requests.get(url,verify=False)
    access_token = rsp.json()
    VipToken=access_token['Result']
    return  VipToken

    # print(type(VipToken))
    # print(type(access_token))
    # print(access_token)
    # print("access_token['Result']: ",access_token['Result'])

if __name__ == "__main__":
    getToken()